<?php

namespace App\Http\Requests\Tickers;

use Illuminate\Foundation\Http\FormRequest;

class GetCandlesRequest extends FormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'instId'    => 'required',
            'bar'       => 'required',
            'after'     => 'sometimes|string',
            'limit'     => 'sometimes|integer|min:1|max:300'
        ];
    }
}
